<?php defined("IN_SYSTEM") or die("Access Denied");/* 防止模板被盗 */?><!DOCTYPE html>
<html lang="en">
	<head>
		{include file="block/head" /}
	</head>
	<body class="lay-blog">
		{include file="block/header" /}
		<div class="container-wrap">
			<div class="container container-message container-details container-about">
				<div class="contar-wrap" id="contar-wrap">
					{if condition="$data['data']['content']"}
					<h4 class="item-title">
						<p>{:htmlspecialchars_decode($data['data']['content'])}</p>
					</h4>
					{/if}
					<form class="layui-form" action="{:url('ajax/postMessage')}" method="post" id="comment-form">
						<div class="layui-form-item layui-form-text">
							  <textarea placeholder="请在此输入留言内容" class="layui-textarea" name="content" style="resize:none"></textarea>
						</div>
						<div class="item-btn">
							<input type="hidden" name="page_id" value="{$data['data']['id']}" />
							<input type="input" class="layui-input item-input" id="blog-guest-nick" name="nick" placeholder="昵称">
							<input type="input" class="layui-input item-input" id="blog-guest-email" name="email" placeholder="邮箱">
							<button type="submit" class="layui-btn layui-btn-normal" id="comment-btn">提交</button>
						</div>
					</form>
					<div class="comment-wrap">
						<div id="LAY-msg-box">加载中...</div>
						<div id="LAY-msg-pages" class="paging"></div>
					</div>
				</div>
			</div>
		</div>
		<script type="text/javascript">
			const msgGetUrl = '{:url('ajax/messages', ['page_id' => $data['data']['id']])}';
		</script>
		{include file="block/commentTpl" likeUrl="/blog/ajax/messageLike" /}
		{include file="block/footer" /}
	</body>
</html>
